import request from '@/utils/request'

// 查询简历技能列表
export function listSkills(query) {
  return request({
    url: '/resume/skills/list',
    method: 'get',
    params: query
  })
}

// 查询简历技能详细
export function getSkills(id) {
  return request({
    url: '/resume/skills/' + id,
    method: 'get'
  })
}

// 新增简历技能
export function addSkills(data) {
  return request({
    url: '/resume/skills',
    method: 'post',
    data: data
  })
}

// 修改简历技能
export function updateSkills(data) {
  return request({
    url: '/resume/skills',
    method: 'put',
    data: data
  })
}

// 删除简历技能
export function delSkills(id) {
  return request({
    url: '/resume/skills/' + id,
    method: 'delete'
  })
}
